<template>
	<view class="">
		<view style="font-size: 60px;">
			我是A页面类型1的页面

		</view>

		<view style="font-size: 20px;">
			A姓名{{name}}
		</view>
		<view style="font-size: 20px;">
			A年龄{{age}}
		</view>
		<view style="font-size: 20px;">
			A城市{{city}}
		</view>
		<view style="font-size: 20px;" @click="tiaozhuan">

			A金钱 {{money}}
		</view>
	<!-- 	<view v-for="(item, index) in listData" :key="index" class="list-item"  @click="tiaozhuan">
			<text>{{ item.title }}</text>
			<text>{{ item.content }}</text>
		</view> -->
	</view>


</template>

<script>
	import data from '@/static/config_page1/page1_type1_data.json'
	export default {
		data() {
			return {
				"name": "",
				"age": "",
				"city": "",
				"money": "",
				"listData": [] // 存储列表数据
			}
		},
		mounted() {
			this.loadData(); // 页面加载时初始化数据
			console.log("zzzzzzzzz" + JSON.stringify(data))
			this.name = data.name

			this.age = data.age
			this.city = data.city
			this.money = data.money


		},
		onLoad() {
			
		},
		methods: {
			// 模拟加载数据
			loadData() {
				// 生成 10 条模拟数据
				for (let i = 0; i < 100; i++) {
					this.listData.push({
						title: `标题 ${i + 1}`,
						content: `这是第 ${i + 1} 条内容`
					});
				}
			},
			click() {
				console.log("zzzzzzzzz")
				var a = 1 / 0
				console.log("zzzzzz22zzz" + a)
				this.money = a
			},

			tiaozhuan() {
				// 基础用法
				uni.navigateTo({
					url: '/pages/detail/detail?id=123',
					success: () => console.log('跳转成功'),
					fail: (err) => console.error('跳转失败', err)
				})

				// 特性说明

			}

		}
	}
</script>

<style>

</style>